/**
 * Created by gg on 2018/8/3.
 */
import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

const store = new Vuex.Store({
    state:{
       userName : 'guiguan'
    },
    mutations:{
      showUserName (state, msg){
        state.userName = msg
      }
    }
})
export default store
